import request from '@/utils/request'

// 查询商品日清列表
export function listDate(query) {
  return request({
    url: '/shop/date/list',
    method: 'get',
    params: query
  })
}
export function listDate1(query) {
  return request({
    url: '/shop/date/list1',
    method: 'get',
    params: query
  })
}
export function listDate3(query) {
  return request({
    url: '/shop/date/list3',
    method: 'get',
    params: query
  })
}

// 查询商品日清详细
export function getDate(id) {
  return request({
    url: '/shop/date/' + id,
    method: 'get'
  })
}

// 新增商品日清
export function addDate(data) {
  return request({
    url: '/shop/date',
    method: 'post',
    data: data
  })
}

// 修改商品日清
export function updateDate(data) {
  return request({
    url: '/shop/date',
    method: 'put',
    data: data
  })
}

// 删除商品日清
export function delDate(id) {
  return request({
    url: '/shop/date/' + id,
    method: 'delete'
  })
}
